package com.xuecheng.content.feignclient;


import com.xuecheng.content.config.MultipartSupportConfig;
import com.xuecheng.content.fallback.MediaServiceClientFallback;
import com.xuecheng.content.fallback.SearchServiceClientFallback;
import com.xuecheng.content.model.po.CourseIndex;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 搜素服务远程调用接口
 */
@FeignClient(value = "search",
        fallbackFactory = SearchServiceClientFallback.class)
public interface SearchServiceClient {

    @PostMapping("/search/index/course")
    Boolean add(@RequestBody CourseIndex courseIndex);
}
